<?php
class Home extends Controller{
	
	function home(){
		parent::Controller();
	}
	
	function index(){
		$data['title'] = "Home";
		$data['main'] = "home/home_cabang";
		$data['sub_title'] = "Selamat Datang";
		
		if ($this->session->userdata('status') == TRUE){
			$this->load->view('base', $data);
		} else {
			redirect('login');
		}
	}
}
?>